package com.lx.dynamicdatasouce.framework.demo.mapper;

import com.lx.dynamicdatasouce.framework.demo.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author lX
 * @version JDK 8
 * @className FriendMapper (此处以class为例)
 * @date 2024/10/7
 * @description mapper实现类
 */
public interface DemoMapper {

    @Select("SELECT * FROM user ")
    List<User> list();

    @Insert("INSERT INTO  user (`name`) VALUES (#{name})")
    void save(User user);
}
